3.59 \(\int \frac{(a+b \text{sech}(c+d \sqrt{x}))^2}{\sqrt{x}} \, dx\)

Optimal. Leaf size=47 \[ 2 a^2 \sqrt{x}+\frac{4 a b \tan ^{-1}\left (\sinh \left (c+d \sqrt{x}\right )\right )}{d}+\frac{2 b^2 \tanh \left (c+d \sqrt{x}\right )}{d} \]

[Out]

2*a^2*Sqrt[x] + (4*a*b*ArcTan[Sinh[c + d*Sqrt[x]]])/d + (2*b^2*Tanh[c + d*Sqrt[x]])/d

________________________________________________________________________________________

Rubi [A]  time = 0.0567438, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.227, Rules used = {5436, 3773, 3770, 3767, 8} \[ 2 a^2 \sqrt{x}+\frac{4 a b \tan ^{-1}\left (\sinh \left (c+d \sqrt{x}\right )\right )}{d}+\frac{2 b^2 \tanh \left (c+d \sqrt{x}\right )}{d} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Sech[c + d*Sqrt[x]])^2/Sqrt[x],x]

[Out]

2*a^2*Sqrt[x] + (4*a*b*ArcTan[Sinh[c + d*Sqrt[x]]])/d + (2*b^2*Tanh[c + d*Sqrt[x]])/d

Rule 5436

Int[(x_)^(m_.)*((a_.) + (b_.)*Sech[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Sech[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IGtQ[Simplif
y[(m + 1)/n], 0] && IntegerQ[p]

Rule 3773

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^2, x_Symbol] :> Simp[a^2*x, x] + (Dist[2*a*b, Int[Csc[c + d*x], x],
 x] + Dist[b^2, Int[Csc[c + d*x]^2, x], x]) /; FreeQ[{a, b, c, d}, x]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \frac{\left (a+b \text{sech}\left (c+d \sqrt{x}\right )\right )^2}{\sqrt{x}} \, dx &=2 \operatorname{Subst}\left (\int (a+b \text{sech}(c+d x))^2 \, dx,x,\sqrt{x}\right )\\ &=2 a^2 \sqrt{x}+(4 a b) \operatorname{Subst}\left (\int \text{sech}(c+d x) \, dx,x,\sqrt{x}\right )+\left (2 b^2\right ) \operatorname{Subst}\left (\int \text{sech}^2(c+d x) \, dx,x,\sqrt{x}\right )\\ &=2 a^2 \sqrt{x}+\frac{4 a b \tan ^{-1}\left (\sinh \left (c+d \sqrt{x}\right )\right )}{d}+\frac{\left (2 i b^2\right ) \operatorname{Subst}\left (\int 1 \, dx,x,-i \tanh \left (c+d \sqrt{x}\right )\right )}{d}\\ &=2 a^2 \sqrt{x}+\frac{4 a b \tan ^{-1}\left (\sinh \left (c+d \sqrt{x}\right )\right )}{d}+\frac{2 b^2 \tanh \left (c+d \sqrt{x}\right )}{d}\\ \end{align*}

Mathematica [A]  time = 0.113166, size = 48, normalized size = 1.02 \[ \frac{2 \left (a \left (a \left (c+d \sqrt{x}\right )+2 b \tan ^{-1}\left (\sinh \left (c+d \sqrt{x}\right )\right )\right )+b^2 \tanh \left (c+d \sqrt{x}\right )\right )}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sech[c + d*Sqrt[x]])^2/Sqrt[x],x]

[Out]

(2*(a*(a*(c + d*Sqrt[x]) + 2*b*ArcTan[Sinh[c + d*Sqrt[x]]]) + b^2*Tanh[c + d*Sqrt[x]]))/d

________________________________________________________________________________________

Maple [A]  time = 0.032, size = 51, normalized size = 1.1 \begin{align*} 2\,{a}^{2}\sqrt{x}+2\,{\frac{{b}^{2}\tanh \left ( c+d\sqrt{x} \right ) }{d}}+8\,{\frac{ba\arctan \left ({{\rm e}^{c+d\sqrt{x}}} \right ) }{d}}+2\,{\frac{{a}^{2}c}{d}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sech(c+d*x^(1/2)))^2/x^(1/2),x)

[Out]

2*a^2*x^(1/2)+2*b^2*tanh(c+d*x^(1/2))/d+8/d*b*a*arctan(exp(c+d*x^(1/2)))+2/d*a^2*c

________________________________________________________________________________________

Maxima [A]  time = 1.13577, size = 65, normalized size = 1.38 \begin{align*} 2 \, a^{2} \sqrt{x} + \frac{4 \, a b \arctan \left (\sinh \left (d \sqrt{x} + c\right )\right )}{d} + \frac{4 \, b^{2}}{d{\left (e^{\left (-2 \, d \sqrt{x} - 2 \, c\right )} + 1\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x^(1/2)))^2/x^(1/2),x, algorithm="maxima")

[Out]

2*a^2*sqrt(x) + 4*a*b*arctan(sinh(d*sqrt(x) + c))/d + 4*b^2/(d*(e^(-2*d*sqrt(x) - 2*c) + 1))

________________________________________________________________________________________

Fricas [B]  time = 2.20083, size = 576, normalized size = 12.26 \begin{align*} \frac{2 \,{\left (a^{2} d \sqrt{x} \cosh \left (d \sqrt{x} + c\right )^{2} + 2 \, a^{2} d \sqrt{x} \cosh \left (d \sqrt{x} + c\right ) \sinh \left (d \sqrt{x} + c\right ) + a^{2} d \sqrt{x} \sinh \left (d \sqrt{x} + c\right )^{2} + a^{2} d \sqrt{x} - 2 \, b^{2} + 4 \,{\left (a b \cosh \left (d \sqrt{x} + c\right )^{2} + 2 \, a b \cosh \left (d \sqrt{x} + c\right ) \sinh \left (d \sqrt{x} + c\right ) + a b \sinh \left (d \sqrt{x} + c\right )^{2} + a b\right )} \arctan \left (\cosh \left (d \sqrt{x} + c\right ) + \sinh \left (d \sqrt{x} + c\right )\right )\right )}}{d \cosh \left (d \sqrt{x} + c\right )^{2} + 2 \, d \cosh \left (d \sqrt{x} + c\right ) \sinh \left (d \sqrt{x} + c\right ) + d \sinh \left (d \sqrt{x} + c\right )^{2} + d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x^(1/2)))^2/x^(1/2),x, algorithm="fricas")

[Out]

2*(a^2*d*sqrt(x)*cosh(d*sqrt(x) + c)^2 + 2*a^2*d*sqrt(x)*cosh(d*sqrt(x) + c)*sinh(d*sqrt(x) + c) + a^2*d*sqrt(
x)*sinh(d*sqrt(x) + c)^2 + a^2*d*sqrt(x) - 2*b^2 + 4*(a*b*cosh(d*sqrt(x) + c)^2 + 2*a*b*cosh(d*sqrt(x) + c)*si
nh(d*sqrt(x) + c) + a*b*sinh(d*sqrt(x) + c)^2 + a*b)*arctan(cosh(d*sqrt(x) + c) + sinh(d*sqrt(x) + c)))/(d*cos
h(d*sqrt(x) + c)^2 + 2*d*cosh(d*sqrt(x) + c)*sinh(d*sqrt(x) + c) + d*sinh(d*sqrt(x) + c)^2 + d)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{sech}{\left (c + d \sqrt{x} \right )}\right )^{2}}{\sqrt{x}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x**(1/2)))**2/x**(1/2),x)

[Out]

Integral((a + b*sech(c + d*sqrt(x)))**2/sqrt(x), x)

________________________________________________________________________________________

Giac [A]  time = 1.19042, size = 74, normalized size = 1.57 \begin{align*} \frac{2 \,{\left (d \sqrt{x} + c\right )} a^{2}}{d} + \frac{8 \, a b \arctan \left (e^{\left (d \sqrt{x} + c\right )}\right )}{d} - \frac{4 \, b^{2}}{d{\left (e^{\left (2 \, d \sqrt{x} + 2 \, c\right )} + 1\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(c+d*x^(1/2)))^2/x^(1/2),x, algorithm="giac")

[Out]

2*(d*sqrt(x) + c)*a^2/d + 8*a*b*arctan(e^(d*sqrt(x) + c))/d - 4*b^2/(d*(e^(2*d*sqrt(x) + 2*c) + 1))